package com.bw.sofa_module.sofa;

import com.bw.network_sdk.videoentity.VideoEntity;
import com.bw.sofa_module.entity.diss.DissEntity;
import com.bw.sofa_module.entity.likecount.LikeCountEntity;
import com.bw.sofa_module.entity.likestate.LikeStateEntity;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface ApiService {

    @GET("serverdemo/feeds/queryHotFeedsList")
    Observable<VideoEntity> requestSofa(@Query("feedId")int feedId,
                                         @Query("feedType")String feedType,
                                         @Query("pageCount")int pageCount,
                                         @Query("userId")int userId);

    @GET("serverdemo/ugc/toggleFeedLike")
    Observable<LikeStateEntity> requestLikeState(@Query("itemId")long itemId,
                                                 @Query("userId")int userId);


    @GET("serverdemo/ugc/increaseLikeCount")
    Observable<LikeCountEntity> requestLikeCount(@Query("itemId")long itemId);

    @GET("serverdemo/ugc/dissFeed")
    Observable<DissEntity> requestDissState(@Query("itemId")long itemId,
                                            @Query("userId")int userId);
}
